
CLEANFILES = *~
DISTCLEANFILES = *~

bin_PROGRAMS = ms2sim

ECMLIB = -lECM

CLX_HOME ?= @prefix@
CLX_HOME_INC = $(CLX_HOME)/include
CLX_HOME_LIB = $(CLX_HOME)/lib

ms2sim_SOURCES = ms2sim.c runsim.c blockcache.c media.c session.c request.c subsys.c \
	stat.c service.c disk.c network.c modsupp.c disksim.c \
	conf.c logging.c debug.c

INCLUDES = -I$(CLX_HOME_INC) -I../../lib

ms2sim_LDFLAGS = -L$(CLX_HOME_LIB) -L/usr/lib64/disksim -static -dlopen self 

# RHEL6 requires -lgslcblas
ms2sim_LDADD = ../../lib/libms2sim.la $(ECMLIB) -lgsl -lgslcblas -ldisksim -ldiskmodel -lmemsmodel -lparam -lddbg
